if(obj.event === 'del'){
  layer.confirm('您确定要删除吗？', function(index){
    $.post('{$url}',{id:data.id},function(res){
      if(res.code==1){
        obj.del();
        layer.close(index);
      }else{
        layer.msg(res.msg);
        layer.close(index);
      }
    })
  });
}
